﻿<%@ Page Title="" Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true" CodeFile="delete_staff.aspx.cs" Inherits="delete_staff" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
    <br /><br />
<div align="center">
<img src="Image/delete-staff.png" alt=""/>
    <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" 
        DataSourceID="orclDataSource5" AllowPaging="True" AllowSorting="True" 
        PageSize="20" Width="750px" ForeColor="#FFCC66" BorderColor="#4A1106" 
        SelectedIndex="0" >
        <HeaderStyle BorderStyle="None" BorderWidth="0px" />
        <Columns>
            <asp:TemplateField HeaderText="SELECT">
                <ItemTemplate>
                    <asp:CheckBox ID="check_box_delete" runat="server" />
                </ItemTemplate>
                <ItemStyle HorizontalAlign="Center" />
            </asp:TemplateField>
            <asp:BoundField DataField="PRENAME" HeaderText="PRENAME" 
                SortExpression="PRENAME" >
            <ItemStyle HorizontalAlign="Center" />
            </asp:BoundField>
            <asp:BoundField DataField="STAFF_ID" HeaderText="STAFF_ID" 
                SortExpression="STAFF_ID" >
            <ItemStyle HorizontalAlign="Center" />
            </asp:BoundField>
            <asp:BoundField DataField="STAFF_FNAME" HeaderText="STAFF_FNAME" 
                SortExpression="STAFF_FNAME" >
            <ItemStyle HorizontalAlign="Center" />
            </asp:BoundField>
            <asp:BoundField DataField="STAFF_LNAME" HeaderText="LASTNAME" 
                SortExpression="STAFF_LNAME" >
            <ItemStyle HorizontalAlign="Center" />
            </asp:BoundField>
            <asp:BoundField DataField="STAFF_TEL" HeaderText="TEL No." 
                SortExpression="STAFF_TEL" >
            <ItemStyle HorizontalAlign="Center" />
            </asp:BoundField>
        </Columns>
        <EmptyDataRowStyle BorderStyle="None" />
        <FooterStyle BorderStyle="None" BorderWidth="0px" />
        <HeaderStyle BackColor="#993300" HorizontalAlign="Center" />
        <PagerStyle BorderStyle="None" BorderWidth="0px" Height="0px" 
            HorizontalAlign="Center" />
        <RowStyle HorizontalAlign="Center" />
    </asp:GridView>
    <asp:SqlDataSource ID="orclDataSource5" runat="server" 
        ConnectionString="<%$ ConnectionStrings:ConnectionString5 %>" 
        ProviderName="<%$ ConnectionStrings:ConnectionString5.ProviderName %>" 
        SelectCommand="SELECT PRENAMES.PRENAME, STAFFS.STAFF_ID, STAFFS.STAFF_FNAME, STAFFS.STAFF_LNAME, STAFFS.STAFF_TEL FROM PRENAMES INNER JOIN STAFFS ON PRENAMES.PRENAME_ID = STAFFS.PRENAME_ID">
    </asp:SqlDataSource>
    <br /><br />
    <asp:Button ID="Button1" runat="server" Text="DELETE" onclick="Button1_Click" 
        BackColor="#FFCC66" Height="25px" Width="85px" BorderColor="#FF9966" />&nbsp;&nbsp;
            <asp:Button ID="Button5" runat="server" BackColor="#FFCC66" 
                BorderColor="#FF9966" Height="25px" onclick="Back_Click" Text="&lt;&lt; Back" 
                Width="85px" />
            <br />
    <asp:Label ID="Label1" runat="server"></asp:Label>
</div><br /><br />
<br />
</asp:Content>

